
<div class="box box-solid">
    <div class="box-body table-responsive ">
    <div class="box-header">
    <div >
        <form role="form" action="" method="get">
            <div class="input-group">

                    <label class="pull-right">
                        <input type="text" name="name" class="form-control input-sm " style="width: 150px;" placeholder="姓名" value=<?php echo $filter['name'];?> >
                    </label>
                    <input type="hidden" name="page" value="1"/>
                    <div class="input-group-btn">
                        <button class="btn btn-sm btn-primary"  >搜索<i class="fa fa-search"></i></button>
                        <a href="<?php echo $this->createUrl('user/driverlist');?>" class="btn btn-sm btn-default">清空条件</a>
                    </div>

            </div>
        </form>
    </div>
</div>

    <?php if(!empty($drivers)): ?>
        <table class="table table-hover table-bordered">

                <tr>
                <th>手机号</th>
                <th>姓名</th>
                <th>状态</th>
                <th>联系人</th>
                <th>银行卡号</th>
                <th>开户银行</th>
                <th class="align-center">操作</th>
                </tr>


    <?php foreach ($drivers as $key => $value): ?>
        <tr>
            <td><?php echo $value['mobile'] ?></td>
            <td><?php echo $value['name'] ?></td>
            <td><?php echo $value['status']==1?'正常':'<b style="color:red">已禁用</b>' ?></td>
            <td><?php echo $value['bank_card'] ?></td>
            <td><?php echo $value['open_bank'] ?></td>
            <td><?php echo date('Y-m-d H:i', $value['ctime']); ?></td>
                        <td class="y-table-action">
                     <a  target="_blank" href="<?php echo $this->createUrl('user/info/sid/'.$value['sid']); ?>">详情</a>
                            <a href="<?php echo $this->createUrl('driver/status/id/' . $value['sid']) ?>"
                               class="y-deep-blue"><?php echo $value['status'] == 1 ? '禁用' : '启用'; ?></a>
                        </td>
            
        </tr>
    <?php endforeach;?>
        </table>
    <?php else:?>
        <div>还没有司机</div>
    <?php endif;?>

    </div>
    <div class="box-footer clearfix">
    <?php if(!empty($drivers)): ?>

        <?php $this->widget('BLinkPager', array('pages'=>$pager)); ?>
    <?php endif; ?>
    </div>

</div>

